package ar.org.sstuyv

import geb.Page

class LoginPage extends Page {

	static url = "http://localhost:8080/SIG/login/auth"
	static at = { title == "Login" }
	
	static content = {
		campoUser { $("input", name: "j_username") }
		campoPassword  {$("input", name: "j_password") }
		loginForm { $("form", id: "loginForm") }
		submit  {$("input", id: "submit").click()}
		submit (to: [AdministradorListPage, SolicitudListPage, CensoListPage]) {$("input", id: "submit").click()}
		submitCenso (to: CensoPage) {$("input", id: "submit").click()}
	}

	
}
